net/minecraft/world/level
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
--- a/net/minecraft/world/level/EmptyBlockGetter.java
|
||||
+++ b/net/minecraft/world/level/EmptyBlockGetter.java
|
||||
@@ -17,6 +_,18 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
+ // Paper start - If loaded util
|
||||
+ @Override
|
||||
+ public final FluidState getFluidIfLoaded(BlockPos blockposition) {
|
||||
+ return Fluids.EMPTY.defaultFluidState();
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public final BlockState getBlockStateIfLoaded(BlockPos blockposition) {
|
||||
+ return Blocks.AIR.defaultBlockState();
|
||||
+ }
|
||||
+ // Paper end
|
||||
+
|
||||
@Override
|
||||
public BlockState getBlockState(BlockPos pos) {
|
||||
return Blocks.AIR.defaultBlockState();
|
||||
Reference in New Issue
Block a user