mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 11:54:47 +00:00
IModelData:
-Implemented hidePart() abd hidden() functions
This commit is contained in:
1 parent
9a77e2f146
commit
6913cadc79
12 files changed
+101
-47
No files matched your search
@@ -535,9 +535,9 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
|
||||
* @param z The z position
|
||||
*/
|
||||
public void setSpawnpoint(int x, int y, int z){
|
||||
x = ValueUtil.CorrectInt(x, -30000000, 30000000);
|
||||
z = ValueUtil.CorrectInt(z, -30000000, 30000000);
|
||||
y = ValueUtil.CorrectInt(y, 0, 256);
|
||||
x = ValueUtil.clamp(x, -30000000, 30000000);
|
||||
z = ValueUtil.clamp(z, -30000000, 30000000);
|
||||
y = ValueUtil.clamp(y, 0, 256);
|
||||
player.setSpawnChunk(new ChunkCoordinates(x, y, z), true);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user