mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
SPIGOT-204: Add way to set block type without using IDs or updating physics.
This commit is contained in:
1 parent
40aaa31c49
commit
6dfcbc61ab
1 file changed
+6
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user