mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 12:19:47 +00:00
Remove some dead code that is not related to unfinished features
This commit is contained in:
1 parent
5b1250ce8a
commit
a9a2db67f4
164 files changed
+102
-3006
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package binnie.botany.modules;
|
||||
|
||||
import binnie.core.util.TileUtil;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@@ -212,10 +213,9 @@ public class ModuleFlowers extends Module {
|
||||
@SubscribeEvent
|
||||
public void onBonemeal(BonemealEvent event) {
|
||||
BlockPos pos = event.getPos();
|
||||
Block block = event.getBlock().getBlock();
|
||||
|
||||
TileEntity tile = event.getWorld().getTileEntity(pos);
|
||||
if (tile instanceof TileEntityFlower && ((TileEntityFlower) tile).onBonemeal()) {
|
||||
TileEntityFlower tile = TileUtil.getTile(event.getWorld(), pos, TileEntityFlower.class);
|
||||
if (tile != null && tile.onBonemeal()) {
|
||||
event.setResult(Event.Result.ALLOW);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user