mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-18 22:24:35 +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);
|
sourcelocation.add(vector);
|
||||||
Block newblock = sourcelocation.getBlock();
|
Block newblock = sourcelocation.getBlock();
|
||||||
if (!newblock.equals(sourceblock)) {
|
if (!newblock.equals(sourceblock)) {
|
||||||
source.revertBlock();
|
if (source != null) {
|
||||||
source = null;
|
source.revertBlock();
|
||||||
|
}
|
||||||
if (!GeneralMethods.isSolid(newblock)) {
|
if (!GeneralMethods.isSolid(newblock)) {
|
||||||
source = new TempBlock(newblock, Material.STATIONARY_WATER, (byte) 8);
|
source = new TempBlock(newblock, Material.STATIONARY_WATER, (byte) 8);
|
||||||
sourceblock = newblock;
|
sourceblock = newblock;
|
||||||
|
|
Loading…
Reference in a new issue