Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 19:10:09 +01:00
Implement getNMSWorld on EntityMinecartContainer
Was missed because the class is abstract and nothing implementing the class was imported in Paper
Dieser Commit ist enthalten in:
Ursprung
814c534481
Commit
f4a62ba294
@ -1,4 +1,4 @@
|
||||
From 82ffa4af43c27227820035be39705b4a233087c2 Mon Sep 17 00:00:00 2001
|
||||
From a19f9f1576418e180545e27121f2667b0d74fbc5 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
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;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren