mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
clicking on spawner with egg will change a mob there
This commit is contained in:
parent
60fd866de6
commit
ea3babff02
7 changed files with 23 additions and 3 deletions
|
|
@ -226,7 +226,6 @@ class Level{
|
|||
$tileEntities .= $nbt->write();
|
||||
break;
|
||||
case TILE_MOB_SPAWNER:
|
||||
console("mobspawner spawn {$tile->data["EntityId"]}");
|
||||
$nbt->setData(new Compound("", array(
|
||||
new StringTag("id", TILE_MOB_SPAWNER),
|
||||
new IntTag("x", (int) $tile->x),
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ class NormalGenerator implements NewLevelGenerator{
|
|||
}
|
||||
}
|
||||
foreach($this->populators as $populator){
|
||||
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->level->getSeed()); //ty shoghicp for 250k bytes of randomness
|
||||
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->level->getSeed()); //ty shoghicp for 250k bytes of randomness (where ~65536 are usable)
|
||||
$populator->populate($this->level, $chunkX, $chunkZ, $this->random);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue