mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
Fix some dumb bugs and crashes
This commit is contained in:
1 parent
7d318bb3bf
commit
107097af0d
6 files changed
+33
-11
No files matched your search
@@ -221,7 +221,7 @@ public class TileEntityGeneratingFlower extends TileEntitySpecialFlower {
|
||||
public void onBlockPlacedBy(World world, BlockPos pos, BlockState state, LivingEntity entity, ItemStack stack) {
|
||||
super.onBlockPlacedBy(world, pos, state, entity, stack);
|
||||
if(isPassiveFlower()) {
|
||||
CompoundNBT cmp = stack.getTag();
|
||||
CompoundNBT cmp = stack.getOrCreateTag();
|
||||
passiveDecayTicks = cmp.getInt(TAG_PASSIVE_DECAY_TICKS);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user