From f4a62ba2942b968708040b64651f81f271df459b Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 4 May 2016 20:33:16 -0400 Subject: [PATCH] Implement getNMSWorld on EntityMinecartContainer Was missed because the class is abstract and nothing implementing the class was imported in Paper --- ...ootTable-API-Replenishable-Lootables-Feature.patch | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Spigot-Server-Patches/0153-LootTable-API-Replenishable-Lootables-Feature.patch b/Spigot-Server-Patches/0153-LootTable-API-Replenishable-Lootables-Feature.patch index 517455ea8f..8322be24b4 100644 --- a/Spigot-Server-Patches/0153-LootTable-API-Replenishable-Lootables-Feature.patch +++ b/Spigot-Server-Patches/0153-LootTable-API-Replenishable-Lootables-Feature.patch @@ -1,4 +1,4 @@ -From 82ffa4af43c27227820035be39705b4a233087c2 Mon Sep 17 00:00:00 2001 +From a19f9f1576418e180545e27121f2667b0d74fbc5 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 1 May 2016 21:19:14 -0400 Subject: [PATCH] LootTable API & Replenishable Lootables Feature @@ -404,7 +404,7 @@ index 0000000..4b2c3fd + } +} diff --git a/src/main/java/net/minecraft/server/EntityMinecartContainer.java b/src/main/java/net/minecraft/server/EntityMinecartContainer.java -index 56e7de8..51b29c8 100644 +index 56e7de8..4b3cf93 100644 --- a/src/main/java/net/minecraft/server/EntityMinecartContainer.java +++ b/src/main/java/net/minecraft/server/EntityMinecartContainer.java @@ -3,17 +3,20 @@ package net.minecraft.server; @@ -459,7 +459,7 @@ index 56e7de8..51b29c8 100644 Random random; if (this.d == 0L) { -@@ -249,12 +254,42 @@ public abstract class EntityMinecartContainer extends EntityMinecartAbstract imp +@@ -249,12 +254,47 @@ public abstract class EntityMinecartContainer extends EntityMinecartAbstract imp } @@ -483,6 +483,11 @@ index 56e7de8..51b29c8 100644 + return lootableData; + } + ++ @Override ++ public World getNMSWorld() { ++ return this.world; ++ } ++ + public String getLootTableName() { + final MinecraftKey key = getLootTableKey(); + return key != null ? key.toString() : null;