BTW-Public icon indicating copy to clipboard operation
BTW-Public copied to clipboard

Change slime chunk spawning restrictions to use block material instead of hardcoded values

Open ammoore00 opened this issue 2 years ago • 0 comments

As found in Slime code written by FC:

private boolean canSpawnOnBlockInSlimeChunk(int i, int j, int k) {
		// FCTEST: this needs to be based on material, not specific block type.  Release as is.
		int iBlockID = worldObj.getBlockId(i, j, k);
		
		return iBlockID == Block.dirt.blockID || iBlockID == Block.stone.blockID || iBlockID == Block.grass.blockID || iBlockID == Block.gravel.blockID ||
				iBlockID == Block.sand.blockID;
	}

ammoore00 avatar Nov 16 '23 04:11 ammoore00