mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 13:39:51 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1e8e27a3e | ||
|
|
1a84a1cb26 | ||
|
|
1207133f98 | ||
|
|
480feef6f7 | ||
|
|
450f31bd73 |
No files matched your search
@@ -98,20 +98,18 @@ public class SolarPanelNetwork {
|
||||
|
||||
private static int getCapacity(TileEntitySolarPanel panel, int panelsCount) {
|
||||
int capacity = ENERGY_PER;
|
||||
int meta = panel.getBlockMetadata();
|
||||
|
||||
if (panel != null && panel.hasWorldObj()) {
|
||||
int meta = panel.getBlockMetadata();
|
||||
switch (meta) {
|
||||
case 0: // Default
|
||||
capacity = Config.photovoltaicCellCapacityRF;
|
||||
break;
|
||||
case 1: // Advanced
|
||||
capacity = Config.photovoltaicAdvancedCellCapacityRF;
|
||||
break;
|
||||
case 2: // Vibrant
|
||||
capacity = Config.photovoltaicVibrantCellCapacityRF;
|
||||
break;
|
||||
}
|
||||
switch (meta) {
|
||||
case 0: // Default
|
||||
capacity = Config.photovoltaicCellCapacityRF;
|
||||
break;
|
||||
case 1: // Advanced
|
||||
capacity = Config.photovoltaicAdvancedCellCapacityRF;
|
||||
break;
|
||||
case 2: // Vibrant
|
||||
capacity = Config.photovoltaicVibrantCellCapacityRF;
|
||||
break;
|
||||
}
|
||||
|
||||
capacity = capacity * panelsCount;
|
||||
|
||||
@@ -554,8 +554,8 @@ public class TravelController {
|
||||
return null;
|
||||
}
|
||||
ItemStack equipped = ep.getCurrentEquippedItem();
|
||||
if (equipped.getItem() instanceof ItemTeleportStaff) {
|
||||
if (((ItemTeleportStaff) equipped.getItem()).isActive(ep, equipped)) {
|
||||
if (equipped.getItem() instanceof ItemTravelStaff) {
|
||||
if (((ItemTravelStaff) equipped.getItem()).isActive(ep, equipped)) {
|
||||
return TravelSource.TELEPORT_STAFF;
|
||||
}
|
||||
} else if (equipped.getItem() instanceof IItemOfTravel) {
|
||||
|
||||
Reference in new issue
Block a user