mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
Fix NPE in OctopusForm
This commit is contained in:
parent
89ee1470e8
commit
42c750862f
1 changed files with 3 additions and 2 deletions
|
@ -227,8 +227,9 @@ public class OctopusForm {
|
|||
sourcelocation.add(vector);
|
||||
Block newblock = sourcelocation.getBlock();
|
||||
if (!newblock.equals(sourceblock)) {
|
||||
source.revertBlock();
|
||||
source = null;
|
||||
if (source != null) {
|
||||
source.revertBlock();
|
||||
}
|
||||
if (!GeneralMethods.isSolid(newblock)) {
|
||||
source = new TempBlock(newblock, Material.STATIONARY_WATER, (byte) 8);
|
||||
sourceblock = newblock;
|
||||
|
|
Loading…
Reference in a new issue