This commit is contained in:
Vincent Lee committed 2020-01-09 14:04:08 -06:00
1 parent 2291ef09c8
commit d82f1ca8cb
151 files changed
+1075 -1059

No files matched your search

@@ -22,7 +22,7 @@ import net.minecraft.util.Hand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.world.IBlockReader;
import net.minecraft.world.IEnviromentBlockReader;
import net.minecraft.world.ILightReader;
import net.minecraft.world.World;
import net.minecraft.world.storage.loot.LootContext;
import net.minecraft.world.storage.loot.LootParameters;
@@ -47,7 +47,7 @@ public class BlockFloatingSpecialFlower extends BlockFloatingFlower implements I
}
@Override
public int getLightValue(@Nonnull BlockState state, IEnviromentBlockReader world, @Nonnull BlockPos pos) {
public int getLightValue(@Nonnull BlockState state, ILightReader world, @Nonnull BlockPos pos) {
TileEntity tile = world.getTileEntity(pos);
return tile instanceof TileEntitySpecialFlower ? ((TileEntitySpecialFlower) tile).getLightValue() : lightValue;
}