PaperMC/paper-server/patches/sources/net/minecraft/world/level/EmptyBlockAndTintGetter.java.patch
2024-12-15 21:28:08 +01:00

21 lines
666 B
Diff

--- a/net/minecraft/world/level/EmptyBlockAndTintGetter.java
+++ b/net/minecraft/world/level/EmptyBlockAndTintGetter.java
@@ -39,6 +_,18 @@
return Blocks.AIR.defaultBlockState();
}
+ // Paper start
+ @Override
+ public @org.jetbrains.annotations.Nullable BlockState getBlockStateIfLoaded(final BlockPos blockposition) {
+ return null;
+ }
+
+ @Override
+ public @org.jetbrains.annotations.Nullable FluidState getFluidIfLoaded(final BlockPos blockposition) {
+ return null;
+ }
+ // Paper end
+
@Override
public FluidState getFluidState(BlockPos pos) {
return Fluids.EMPTY.defaultFluidState();