Skip to content

Commit

Permalink
Merge branch '1.16' into release-1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed May 11, 2024
2 parents 33d7a72 + 9cbfcce commit 666182e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 3 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,18 @@ repositories {
maven {
url 'https://www.dogforce-games.com/maven/'
}
maven {
url "https://cursemaven.com"
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.16.5-36.2.8'

compileOnly fg.deobf("mezz.jei:jei-1.16.5:7.7.1.121:api")
// at runtime, use the full JEI jar
runtimeOnly fg.deobf("mezz.jei:jei-1.16.5:7.7.1.121")

implementation fg.deobf("curse.maven:industrial-foregoing-266515:5334823")
}

jar {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx8G
minecraftVersion=1.16.5
api_version=3.2.8.9
api_version=3.2.8.10
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,24 @@ private boolean transfer(FacingUtil.Sideness sideness, IItemHandler from, IItemH
int slot = slotCache.getOrDefault(sideness, getNextSlot(from, 0));
if (slot >= from.getSlots()) slot = 0;
ItemStack extracted = from.extractItem(slot, workAmount, true);
if (!extracted.isEmpty()) {
ItemStack returned = ItemHandlerHelper.insertItem(to, extracted, false);
int outSlot = isValidForAnySlot(to, extracted);
if (!extracted.isEmpty() && outSlot != -1) {
ItemStack returned = to.insertItem(outSlot, extracted, false);
return !from.extractItem(slot, extracted.getCount() - returned.getCount(), false).isEmpty();
}
slotCache.put(sideness, getNextSlot(from, slot + 1));
return false;
}

private int isValidForAnySlot(IItemHandler dest, ItemStack stack) {
for (int i = 0; i < dest.getSlots(); i++) {
if (!dest.isItemValid(i, stack)) continue;
if (dest.getStackInSlot(i).isEmpty()) return i;
if (ItemHandlerHelper.canItemStacksStack(dest.getStackInSlot(i), stack) && dest.getStackInSlot(i).getCount() < dest.getSlotLimit(i)) {
return i;
}
}
return -1;
}

}
46 changes: 46 additions & 0 deletions src/main/resources/assets/titanium/lang/fr_fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"tooltip.titanium.facing_handler.direction": "Direction : ",
"tooltip.titanium.facing_handler.top": "Dessus",
"tooltip.titanium.facing_handler.bottom": "Dessous",
"tooltip.titanium.facing_handler.left": "Gauche",
"tooltip.titanium.facing_handler.right": "Droite",
"tooltip.titanium.facing_handler.front": "Devant",
"tooltip.titanium.facing_handler.back": "Arrière",
"tooltip.titanium.facing_handler.action": "Action : ",
"tooltip.titanium.facing_handler.none": "Désactivé",
"tooltip.titanium.facing_handler.pull": "Retirer",
"tooltip.titanium.facing_handler.push": "Déposer",
"tooltip.titanium.facing_handler.enabled": "Activé",
"tooltip.titanium.facing_handler.test": "Test Facing Thing",
"tooltip.titanium.facing_handler.test2": "This is a Second Test",
"tooltip.titanium.facing_handler.inventory": "Entrée",
"tooltip.titanium.facing_handler.real_output": "Sortie",
"tooltip.titanium.facing_handler.fluid_input": "Insertion manuelle de liquide",
"tooltip.titanium.progressbar.progress": "Progression : ",
"tooltip.titanium.tank.fluid": "Fluide : ",
"tooltip.titanium.tank.empty": "Vide ",
"tooltip.titanium.tank.amount": "Montant : ",
"tooltip.titanium.tank.can_fill_from_item": "Peut être rempli avec l'objet",
"tooltip.titanium.tank.action_fill": "<Clic gauche pour remplir avec l'objet>",
"tooltip.titanium.tank.can_drain_from_item": "Peut vider avec l'objet",
"tooltip.titanium.tank.action_drain": "<Clic droit pour vider avec l'objet>",
"tooltip.titanium.tank.no_tank": "<Pas survolé avec un réservoir>",
"tooltip.titanium.tank.no_action": "Impossible de remplir ou de vider avec l'objet",
"titanium.rewards.remove_success": "Récompense supprimée avec succès",
"titanium.rewards.enabled_success": "Récompense activée avec succès",
"titanium.rewards.granted_success": "Récompense accordée au serveur avec succès",
"block.titanium.block_asset_test": "Test de ressources",
"direction.titanium.east": "Est",
"direction.titanium.west": "Ouest",
"direction.titanium.north": "Nord",
"direction.titanium.south": "Sud",
"direction.titanium.up": "Haut",
"direction.titanium.down": "Bas",
"itemGroup.resources": "Titanium : Resources",
"tooltip.titanium.redstone.ignored": "Mode redstone : ignoré",
"tooltip.titanium.redstone.no_redstone": "Mode redstone : exécuter sans signal de redstone",
"tooltip.titanium.redstone.redstone": "Mode Redstone : Exécuter avec le signal Redstone",
"tooltip.titanium.redstone.once": "Mode Redstone : Exécuter à l'impulsion",
"tooltip.titanium.unlocks": "Déverrouiller :",
"tooltip.titanium.locks": "Verrouiller :"
}

0 comments on commit 666182e

Please sign in to comment.