use of stevekung.mods.moreplanets.util.blocks.IFireBlock in project MorePlanets by SteveKunG.
the class GeneralEventHandler method onLeftClickBlock.
@SubscribeEvent
public void onLeftClickBlock(PlayerInteractEvent.LeftClickBlock event) {
BlockPos firePos = event.getPos().offset(event.getFace());
if (event.getWorld().getBlockState(firePos).getBlock() instanceof IFireBlock) {
GalacticraftCore.packetPipeline.sendToServer(new PacketSimpleMP(EnumSimplePacketMP.S_FIRE_EXTINGUISH, GCCoreUtil.getDimensionID(event.getWorld()), firePos));
event.setCanceled(true);
}
}
Aggregations