diff options
author | Aikar <[email protected]> | 2016-05-04 20:33:16 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2016-05-04 20:33:16 -0400 |
commit | f4a62ba2942b968708040b64651f81f271df459b (patch) | |
tree | 20c153a3b1743e4313449a2989dd24faf95d1175 | |
parent | 814c534481f153ea73c25f00911759f7165a2821 (diff) | |
download | Paper-f4a62ba2942b968708040b64651f81f271df459b.tar.gz Paper-f4a62ba2942b968708040b64651f81f271df459b.zip |
Implement getNMSWorld on EntityMinecartContainer
Was missed because the class is abstract and nothing implementing the class was imported in Paper
-rw-r--r-- | Spigot-Server-Patches/0153-LootTable-API-Replenishable-Lootables-Feature.patch | 11 |
1 files 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 <[email protected]> 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; |