mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 05:54:49 +00:00
Merge upstream
This commit is contained in:
commit
750276db9b
100 files changed
+525
-84
No files matched your search
@@ -211,7 +211,7 @@ public class TileLightRelay extends TileMod implements IWandBindable {
|
||||
|
||||
boolean isItem = riddenByEntity instanceof EntityItem;
|
||||
if(!isItem && ticksExisted % 30 == 0)
|
||||
worldObj.playSoundAtEntity(this, "botania:lightRelay", 0.2F, (float) Math.random() * 0.3F + 0.7F);
|
||||
worldObj.playSoundAtEntity(this, "botania:lightRelay", 0.05F, (float) Math.random() * 0.3F + 0.7F);
|
||||
|
||||
int exitX = getExitX();
|
||||
int exitY = getExitY();
|
||||
@@ -223,9 +223,6 @@ public class TileLightRelay extends TileMod implements IWandBindable {
|
||||
if(x == exitX && y == exitY && z == exitZ) {
|
||||
TileEntity tile = worldObj.getTileEntity(x, y, z);
|
||||
if(tile != null && tile instanceof TileLightRelay) {
|
||||
if(!isItem)
|
||||
worldObj.playSoundAtEntity(this, "random.orb", 0.2F, (float) Math.random() * 0.3F + 0.7F);
|
||||
|
||||
int meta = worldObj.getBlockMetadata(x, y, z);
|
||||
if(meta > 0) {
|
||||
worldObj.setBlockMetadataWithNotify(x, y, z, meta | 8, 1 | 2);
|
||||
|
||||
Reference in new issue
Block a user