Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Redirect(method = CHUNK_CACHE_GET_LIGHT_FOR, at = @At(value = "INVOKE", target = BLOCK_POS_GETY), require = 2)
- private int getLightForgetYReplace(BlockPos pos) {
- ICubicWorld world = (ICubicWorld) worldObj;
- if(pos.getY() < world.getMinHeight() || pos.getY() >= world.getMaxHeight()) {
- return 64;
- }
- return pos.getY();
- }
- @Redirect(method = CHUNK_CACHE_GET_LIGHT_FOR_EXT, at = @At(value = "INVOKE", target = BLOCK_POS_GETY), require = 2)
- private int getLightForExtGetYReplace(BlockPos pos) {
- ICubicWorld world = (ICubicWorld) worldObj;
- if(pos.getY() < world.getMinHeight() || pos.getY() >= world.getMaxHeight()) {
- return 64;
- }
- return pos.getY();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement