Make privileged SwitchBlock(World Switch) can't pickup (#9557)

This commit is contained in:
SITUVNgcd
2024-02-16 21:52:31 +07:00
committed by GitHub
parent b27ed03842
commit e6dd6cb44d

View File

@@ -43,6 +43,11 @@ public class SwitchBlock extends Block{
super.damage(damage); super.damage(damage);
} }
@Override
public boolean canPickup(){
return !privileged;
}
@Override @Override
public boolean collide(Bullet other){ public boolean collide(Bullet other){
return !privileged; return !privileged;