summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityFallingBlock.java
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-12-19 22:03:52 -0600
committerfeildmaster <admin@feildmaster.com>2012-12-20 10:43:00 -0600
commit23b67643741d5754af4de020a29d557078f9f81d (patch)
tree90e1a32f7eb94af49a381cb6bc34bf6247f0efe6 /src/main/java/net/minecraft/server/EntityFallingBlock.java
parent9f1bf124eec7c20f16b2034fd9fba55f70c805fd (diff)
downloadcraftbukkit-23b67643741d5754af4de020a29d557078f9f81d.tar
craftbukkit-23b67643741d5754af4de020a29d557078f9f81d.tar.gz
craftbukkit-23b67643741d5754af4de020a29d557078f9f81d.tar.lz
craftbukkit-23b67643741d5754af4de020a29d557078f9f81d.tar.xz
craftbukkit-23b67643741d5754af4de020a29d557078f9f81d.zip
Update CraftBukkit to Minecraft 1.4.6
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityFallingBlock.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityFallingBlock.java19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/EntityFallingBlock.java b/src/main/java/net/minecraft/server/EntityFallingBlock.java
index 2f142ae1..1daf7bee 100644
--- a/src/main/java/net/minecraft/server/EntityFallingBlock.java
+++ b/src/main/java/net/minecraft/server/EntityFallingBlock.java
@@ -25,7 +25,7 @@ public class EntityFallingBlock extends Entity {
this.dropItem = true;
this.e = false;
this.hurtEntities = false;
- this.fallHurtMax = 20;
+ this.fallHurtMax = 40;
this.fallHurtAmount = 2.0F;
}
@@ -39,7 +39,7 @@ public class EntityFallingBlock extends Entity {
this.dropItem = true;
this.e = false;
this.hurtEntities = false;
- this.fallHurtMax = 20;
+ this.fallHurtMax = 40;
this.fallHurtAmount = 2.0F;
this.id = i;
this.data = j;
@@ -84,12 +84,13 @@ public class EntityFallingBlock extends Entity {
int k = MathHelper.floor(this.locZ);
if (this.c == 1) {
- if (this.c == 1 && this.world.getTypeId(i, j, k) == this.id && this.world.getData(i, j, k) == this.data && !CraftEventFactory.callEntityChangeBlockEvent(this, i, j, k, 0, 0).isCancelled()) { // CraftBukkit - compare data and call event
- this.world.setTypeId(i, j, k, 0);
- } else {
+ // CraftBukkit - compare data and call event
+ if (this.c != 1 || this.world.getTypeId(i, j, k) != this.id || this.world.getData(i, j, k) != this.data || CraftEventFactory.callEntityChangeBlockEvent(this, i, j, k, 0, 0).isCancelled()) {
this.die();
- return; // CraftBukkit
+ return;
}
+
+ this.world.setTypeId(i, j, k, 0);
}
if (this.onGround) {
@@ -196,4 +197,10 @@ public class EntityFallingBlock extends Entity {
public void e(boolean flag) {
this.hurtEntities = flag;
}
+
+ public void a(CrashReportSystemDetails crashreportsystemdetails) {
+ super.a(crashreportsystemdetails);
+ crashreportsystemdetails.a("Immitating block ID", Integer.valueOf(this.id));
+ crashreportsystemdetails.a("Immitating block data", Integer.valueOf(this.data));
+ }
}