updating ignore
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -19,7 +19,11 @@ forge-*-changelog.txt
|
|||||||
1.11/usernamecache.json
|
1.11/usernamecache.json
|
||||||
1.11/options.txt
|
1.11/options.txt
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
1.11/eula.txt
|
||||||
|
1.11/server.properties
|
||||||
|
|
||||||
# eclipse
|
# eclipse
|
||||||
bin
|
bin
|
||||||
|
|||||||
@@ -94,6 +94,8 @@ public class Anvil extends CustomContainerFacing {
|
|||||||
//System.out.println("Tile is not null");
|
//System.out.println("Tile is not null");
|
||||||
//if ((player.inventory.getCurrentItem().getItem().equals(PrimalItems.STONE_GALLAGHER)) || (player.inventory.getCurrentItem().getItem() == ModItems.forgehammer)) {
|
//if ((player.inventory.getCurrentItem().getItem().equals(PrimalItems.STONE_GALLAGHER)) || (player.inventory.getCurrentItem().getItem() == ModItems.forgehammer)) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ((pItem.getItem() instanceof WorkMallet) || (pItem.getItem() == ModItems.forgehammer)) {
|
if ((pItem.getItem() instanceof WorkMallet) || (pItem.getItem() == ModItems.forgehammer)) {
|
||||||
|
|
||||||
|
|
||||||
@@ -244,65 +246,66 @@ public class Anvil extends CustomContainerFacing {
|
|||||||
|
|
||||||
|
|
||||||
if ( (!(pItem.getItem() instanceof WorkMallet)) || (!(pItem.getItem() instanceof ForgeHammer)) ) {
|
if ( (!(pItem.getItem() instanceof WorkMallet)) || (!(pItem.getItem() instanceof ForgeHammer)) ) {
|
||||||
|
if(Block.getBlockFromItem(pItem.getItem()) instanceof IngotBall) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (state.getValue(FACING) == EnumFacing.NORTH) {
|
if (state.getValue(FACING) == EnumFacing.NORTH) {
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
for (int z = 0; z < 5; z++) {
|
for (int z = 0; z < 5; z++) {
|
||||||
for (int x = 0; x < 5; x++) {
|
for (int x = 0; x < 5; x++) {
|
||||||
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
||||||
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
||||||
doWork(pItem, counter, tile, world, pos, player);
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
}
|
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
if (state.getValue(FACING) == EnumFacing.SOUTH) {
|
}
|
||||||
int counter = 0;
|
}
|
||||||
for (int z = 0; z < 5; z++) {
|
if (state.getValue(FACING) == EnumFacing.SOUTH) {
|
||||||
for (int x = 0; x < 5; x++) {
|
int counter = 0;
|
||||||
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
for (int z = 0; z < 5; z++) {
|
||||||
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
for (int x = 0; x < 5; x++) {
|
||||||
doWork(pItem, counter, tile, world, pos, player);
|
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
||||||
return true;
|
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
||||||
}
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
}
|
return true;
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
if (state.getValue(FACING) == EnumFacing.WEST) {
|
}
|
||||||
int counter = 0;
|
}
|
||||||
for (int x = 0; x < 5; x++) {
|
if (state.getValue(FACING) == EnumFacing.WEST) {
|
||||||
for (int z = 0; z < 5; z++) {
|
int counter = 0;
|
||||||
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
for (int x = 0; x < 5; x++) {
|
||||||
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
for (int z = 0; z < 5; z++) {
|
||||||
doWork(pItem, counter, tile, world, pos, player);
|
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
||||||
return true;
|
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
||||||
}
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
}
|
return true;
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
if (state.getValue(FACING) == EnumFacing.EAST) {
|
}
|
||||||
int counter = 0;
|
}
|
||||||
for (int x = 0; x < 5; x++) {
|
if (state.getValue(FACING) == EnumFacing.EAST) {
|
||||||
for (int z = 0; z < 5; z++) {
|
int counter = 0;
|
||||||
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
for (int x = 0; x < 5; x++) {
|
||||||
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
for (int z = 0; z < 5; z++) {
|
||||||
doWork(pItem, counter, tile, world, pos, player);
|
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
||||||
return true;
|
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
||||||
}
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
}
|
return true;
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user