mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fixed NeighborNotifyEvent not containing the piston facing direction.
This commit is contained in:
1 parent
321122c7e3
commit
5637c411dc
2 files changed
+3
-3
No files matched your search
@@ -5,7 +5,7 @@
|
||||
{
|
||||
this.field_145850_b.func_180501_a(this.field_174879_c, this.field_174932_a, 3);
|
||||
- this.field_145850_b.func_180496_d(this.field_174879_c, this.field_174932_a.func_177230_c());
|
||||
+ if(!net.minecraftforge.event.ForgeEventFactory.onNeighborNotify(field_145850_b, field_174879_c, field_145850_b.func_180495_p(field_174879_c), java.util.EnumSet.noneOf(EnumFacing.class)).isCanceled())
|
||||
+ if(!net.minecraftforge.event.ForgeEventFactory.onNeighborNotify(field_145850_b, field_174879_c, field_145850_b.func_180495_p(field_174879_c), java.util.EnumSet.of(this.field_174931_f.func_176734_d())).isCanceled())
|
||||
+ this.field_145850_b.func_180496_d(this.field_174879_c, this.field_174932_a.func_177230_c());
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@
|
||||
{
|
||||
this.field_145850_b.func_180501_a(this.field_174879_c, this.field_174932_a, 3);
|
||||
- this.field_145850_b.func_180496_d(this.field_174879_c, this.field_174932_a.func_177230_c());
|
||||
+ if(!net.minecraftforge.event.ForgeEventFactory.onNeighborNotify(field_145850_b, field_174879_c, field_145850_b.func_180495_p(field_174879_c), java.util.EnumSet.noneOf(EnumFacing.class)).isCanceled())
|
||||
+ if(!net.minecraftforge.event.ForgeEventFactory.onNeighborNotify(field_145850_b, field_174879_c, field_145850_b.func_180495_p(field_174879_c), java.util.EnumSet.of(this.field_174931_f.func_176734_d())).isCanceled())
|
||||
+ this.field_145850_b.func_180496_d(this.field_174879_c, this.field_174932_a.func_177230_c());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public class NeighborNotifyEventTest
|
||||
public void onNeighborNotify(NeighborNotifyEvent event)
|
||||
{
|
||||
if(ENABLE) {
|
||||
System.out.println(event.getPos().toString());
|
||||
System.out.println(event.getPos().toString() + " with face information: " + event.getNotifiedSides());
|
||||
event.setCanceled(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user