Skip to content

Commit

Permalink
Merge pull request #182 from Tig3r98/master
Browse files Browse the repository at this point in the history
Improve HopperXfer performance
  • Loading branch information
Loving11ish authored Feb 29, 2024
2 parents dce95a4 + a5e3348 commit 6dcb168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/main/java/me/dniym/checks/CheckUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ public static boolean CheckEntireContainer(Container container) {

public static boolean CheckEntireInventory(Inventory inv) {

for (int i = 0; i < inv.getContents().length; i++) {
ItemStack is = inv.getContents()[i];
for (ItemStack is : inv.getContents()) {
if (is == null) {
continue;
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/main/java/me/dniym/listeners/mcMMOListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public static boolean ismcMMOActive(Player player) {
@EventHandler
public void onPotionBrew(McMMOPlayerBrewEvent e) {
BrewingStand bs =(BrewingStand) e.getBrewingStand();
for(int i = 0; i < bs.getInventory().getStorageContents().length;i++) {
ItemStack is = bs.getInventory().getStorageContents()[i];
ItemStack[] storageContents = bs.getInventory().getStorageContents();
for(int i = 0; i < storageContents.length;i++) {
ItemStack is = storageContents[i];
if(is == null)
continue;
Expand Down

0 comments on commit 6dcb168

Please sign in to comment.