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

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