Add getter for the world to LootContext (#2954)

This commit is contained in:
Vincent Lee 2016-06-09 05:37:11 -05:00 committed by LexManos
parent ca6d1c9e3d
commit 6a3b734801
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- ../src-base/minecraft/net/minecraft/world/storage/loot/LootContext.java
+++ ../src-work/minecraft/net/minecraft/world/storage/loot/LootContext.java
@@ -89,6 +89,11 @@
}
}
+ public WorldServer getWorld()
+ {
+ return field_186499_b;
+ }
+
public static class Builder
{
private final WorldServer field_186474_a;