mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-204: Add way to set block type without using IDs or updating physics.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
54cd8712d8
commit
54af1f70a4
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue