Fix Redstone

This commit is contained in:
Timo Ley 2022-10-01 22:53:15 +02:00
parent 3183ae85f2
commit 563b5b60ea
4 changed files with 7 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,4 +1,7 @@
*.class *.class
bin
run
build
# Mobile Tools for Java (J2ME) # Mobile Tools for Java (J2ME)
.mtj.tmp/ .mtj.tmp/

View file

@ -3,7 +3,7 @@ buildscript {
mavenCentral() mavenCentral()
maven { maven {
name = "forge" name = "forge"
url = "http://files.minecraftforge.net/maven" url = "https://files.minecraftforge.net/maven"
} }
maven { maven {
name = "sonatype" name = "sonatype"

View file

@ -1,4 +1,4 @@
forgeVersion=1.7.10-10.13.2.1236 forgeVersion=1.7.10-10.13.4.1614-1.7.10
ic2Version=net.industrial-craft:industrialcraft-2:2.2.660-experimental:dev ic2Version=net.industrial-craft:industrialcraft-2:2.2.660-experimental:dev
newAPMVersion=2.0.1A newAPMVersion=2.0.1A

View file

@ -231,6 +231,7 @@ public class BlockAdvPwrMan extends BlockContainer{
@Override @Override
public int isProvidingWeakPower(IBlockAccess block, int x, int y, int z, int side){ public int isProvidingWeakPower(IBlockAccess block, int x, int y, int z, int side){
System.out.println("Get Redstone Power");
TileEntity tile = block.getTileEntity(x, y, z); TileEntity tile = block.getTileEntity(x, y, z);
return tile instanceof TEStorageMonitor && ((TEStorageMonitor) tile).isPowering ? 15 : 0; // TODO return tile instanceof TEStorageMonitor && ((TEStorageMonitor) tile).isPowering ? 15 : 0; // TODO
// Verify // Verify
@ -246,7 +247,7 @@ public class BlockAdvPwrMan extends BlockContainer{
@Override @Override
public boolean canProvidePower(){ public boolean canProvidePower(){
return false; // Old means of causing visual RedPower wire connections. return true;
} }
@Override @Override