2022-04-19 23:49:48 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-04-22 06:15:01 +00:00
|
|
|
From: Video <videogamesm12@gmail.com>
|
|
|
|
Date: Sun, 13 Mar 2022 08:14:44 -0600
|
|
|
|
Subject: [PATCH] Ignore errors thrown when trying to remove minecart entities
|
|
|
|
with content in them
|
2022-04-19 23:49:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java b/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java
|
2022-04-22 06:15:01 +00:00
|
|
|
index ef50d9747f2a027e356b05ad8d94ffb2fd4a423e..cd8ede69be1f728663a670085113d842ec0209af 100644
|
2022-04-19 23:49:48 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/vehicle/AbstractMinecartContainer.java
|
2022-04-22 06:15:01 +00:00
|
|
|
@@ -192,7 +192,12 @@ public abstract class AbstractMinecartContainer extends AbstractMinecart impleme
|
2022-04-19 23:49:48 +00:00
|
|
|
@Override
|
|
|
|
public void remove(Entity.RemovalReason reason) {
|
|
|
|
if (!this.level.isClientSide && reason.shouldDestroy()) {
|
|
|
|
- Containers.dropContents(this.level, (Entity) this, (Container) this);
|
2022-04-22 06:15:01 +00:00
|
|
|
+ // Scissors start - Ignore errors thrown when trying to remove minecart entities with content in them
|
|
|
|
+ try {
|
|
|
|
+ Containers.dropContents(this.level, (Entity) this, (Container) this);
|
|
|
|
+ } catch (Exception ignored) {
|
|
|
|
+ }
|
|
|
|
+ // Scissors end
|
2022-04-19 23:49:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
super.remove(reason);
|