mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
SPIGOT-204: Add way to set block type without using IDs or updating physics.
This commit is contained in:
parent
40aaa31c49
commit
6dfcbc61ab
1 changed files with 6 additions and 1 deletions
|
@ -113,7 +113,12 @@ public class CraftBlock implements Block {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(final Material type) {
|
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) {
|
public boolean setTypeId(final int type) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue