mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
getIsPassable
This commit is contained in:
1 parent
4f753371c8
commit
a988367471
2 files changed
+16
-2
No files matched your search
@@ -81,12 +81,24 @@ public class BlockScriptedWrapper extends ScriptBlock implements IBlockScripted{
|
||||
|
||||
@Override
|
||||
public void setIsPassible(boolean bo){
|
||||
setIsPassable(bo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getIsPassible(){
|
||||
return getIsPassable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIsPassable(boolean bo){
|
||||
tile.isPassible = bo;
|
||||
tile.needsClientUpdate = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getIsPassible(){
|
||||
public boolean getIsPassable(){
|
||||
if(tile == null)
|
||||
return false;
|
||||
return tile.isPassible;
|
||||
}
|
||||
|
||||
@@ -97,6 +109,8 @@ public class BlockScriptedWrapper extends ScriptBlock implements IBlockScripted{
|
||||
|
||||
@Override
|
||||
public int getLight(){
|
||||
if(tile == null)
|
||||
return 0;
|
||||
return tile.lightValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user