From 6dfcbc61ab48a214ff8c360905d59cf06677294b Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 22 Dec 2014 19:47:37 +1100 Subject: [PATCH] SPIGOT-204: Add way to set block type without using IDs or updating physics. --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index de3585726a..22a80551b5 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -113,7 +113,12 @@ public class CraftBlock implements Block { } public void setType(final Material type) { - setTypeId(type.getId()); + setType(type, true); + } + + @Override + public void setType(Material type, boolean applyPhysics) { + setTypeId(type.getId(), applyPhysics); } public boolean setTypeId(final int type) {