Ported rule updateSuppressionCrashFix from Carpet-Extra + More (#1133)

* Posted rule `updateSuppressionCrashFix` from Carpet-Extra
Also added catch for update suppression in neighbour update during ServerPlayerEntity tick.
Added Logger `updateSuppressedCrashes` so not everyone sees the crash messages
Added Coords to crash message so we now know where it originates from

* Make it easier to read

* that `s` has been there for a long time

* Made `updateSuppressionCrashFix` compatible with carpet-extra
This commit is contained in:
Fx Morin authored and GitHub committed 2021-10-20 23:08:23 -03:00
1 parent 506457d878
commit 0714098347
7 files changed
+169 -4

No files matched your search

@@ -0,0 +1,12 @@
package carpet.helpers;
import net.minecraft.util.math.BlockPos;
public class ThrowableSuppression extends RuntimeException{
public final BlockPos pos;
public ThrowableSuppression(String message, BlockPos pos) {
super(message);
this.pos = pos;
}
}