diff options
author | md_5 <git@md-5.net> | 2014-12-22 19:47:37 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-22 19:48:02 +1100 |
commit | 6dfcbc61ab48a214ff8c360905d59cf06677294b (patch) | |
tree | 742ac102d9893faff092e3e082c721ee485c0a2a /src/main/java/org/bukkit | |
parent | 40aaa31c4998cc3f57ce9f66152e9a5feabf02c2 (diff) | |
download | craftbukkit-6dfcbc61ab48a214ff8c360905d59cf06677294b.tar craftbukkit-6dfcbc61ab48a214ff8c360905d59cf06677294b.tar.gz craftbukkit-6dfcbc61ab48a214ff8c360905d59cf06677294b.tar.lz craftbukkit-6dfcbc61ab48a214ff8c360905d59cf06677294b.tar.xz craftbukkit-6dfcbc61ab48a214ff8c360905d59cf06677294b.zip |
SPIGOT-204: Add way to set block type without using IDs or updating physics.
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index de358572..22a80551 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) { |