mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
23 lines
631 B
Diff
23 lines
631 B
Diff
|
--- a/net/minecraft/world/level/EmptyBlockGetter.java
|
||
|
+++ b/net/minecraft/world/level/EmptyBlockGetter.java
|
||
|
@@ -17,7 +17,19 @@
|
||
|
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();
|
||
|
}
|