mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Update upstream B/CB
This commit is contained in:
parent
ad39344717
commit
0aaf5eb95c
3 changed files with 2 additions and 29 deletions
|
@ -1,27 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jedediah Smith <jedediah@silencegreys.com>
|
||||
Date: Sat, 11 Jun 2016 19:09:16 -0500
|
||||
Subject: [PATCH] Resolve an ISE in MagmaBlock damage handling
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockMagma.java b/src/main/java/net/minecraft/server/BlockMagma.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockMagma.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockMagma.java
|
||||
@@ -0,0 +0,0 @@ public class BlockMagma extends Block {
|
||||
|
||||
public void stepOn(World world, BlockPosition blockposition, Entity entity) {
|
||||
if (!entity.isFireProof() && entity instanceof EntityLiving && !EnchantmentManager.j((EntityLiving) entity)) {
|
||||
+ final org.bukkit.block.Block oldBlockDamage = org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage; // Paper
|
||||
org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()); // CraftBukkit
|
||||
+ // Paper start
|
||||
+ try {
|
||||
entity.damageEntity(DamageSource.HOT_FLOOR, 1.0F);
|
||||
+ } finally {
|
||||
+ org.bukkit.craftbukkit.event.CraftEventFactory.blockDamage = oldBlockDamage;
|
||||
+ }
|
||||
+ // Paper end
|
||||
}
|
||||
|
||||
super.stepOn(world, blockposition, entity);
|
||||
--
|
|
@ -1 +1 @@
|
|||
Subproject commit a4fe2264e678cdc646098df61398ea8a10b0731a
|
||||
Subproject commit 82821325a6b1645d5607057e9656ef3689f5ae1a
|
|
@ -1 +1 @@
|
|||
Subproject commit d5ecbd0e93a7a22d3631541c258635fdcc42a489
|
||||
Subproject commit ac58f3840ebe6060511c56ca8c4440916ea46425
|
Loading…
Reference in a new issue