summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityHanging.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2015-06-06 19:33:48 +1000
committermd_5 <git@md-5.net>2015-06-06 19:46:42 +1000
commita65e45d889c1f040e1921eb84903af915df512db (patch)
tree74ff87413ffc36de8640085c6b611b554a55b144 /nms-patches/EntityHanging.patch
parenta6a57a96d02e57264d45120ce9f272c18c64407a (diff)
downloadcraftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar.gz
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar.lz
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.tar.xz
craftbukkit-a65e45d889c1f040e1921eb84903af915df512db.zip
[SPIGOT-946] Begin making use of access transforms to simplify patching.
Diffstat (limited to 'nms-patches/EntityHanging.patch')
-rw-r--r--nms-patches/EntityHanging.patch16
1 files changed, 1 insertions, 15 deletions
diff --git a/nms-patches/EntityHanging.patch b/nms-patches/EntityHanging.patch
index 914ed081..aee058d5 100644
--- a/nms-patches/EntityHanging.patch
+++ b/nms-patches/EntityHanging.patch
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/EntityHanging.java
+++ b/net/minecraft/server/EntityHanging.java
-@@ -4,10 +4,17 @@
+@@ -4,6 +4,13 @@
import java.util.List;
import org.apache.commons.lang3.Validate;
@@ -14,20 +14,6 @@
public abstract class EntityHanging extends Entity {
private int c;
-- protected BlockPosition blockPosition;
-+ public BlockPosition blockPosition; // CraftBukkit - public
- public EnumDirection direction;
-
- public EntityHanging(World world) {
-@@ -22,7 +29,7 @@
-
- protected void h() {}
-
-- protected void setDirection(EnumDirection enumdirection) {
-+ public void setDirection(EnumDirection enumdirection) { // CraftBukkit - public
- Validate.notNull(enumdirection);
- Validate.isTrue(enumdirection.k().c());
- this.direction = enumdirection;
@@ -30,30 +37,34 @@
this.updateBoundingBox();
}