mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
The Solegnolia now negates any rings worn by players inside it.
This commit is contained in:
1 parent
018a61f38a
commit
977ae218ea
2 files changed
+7
-1
No files matched your search
@@ -92,6 +92,12 @@ public class ItemMagnetRing extends ItemBauble {
|
||||
|
||||
int cooldown = getCooldown(stack);
|
||||
|
||||
if(SubTileSolegnolia.hasSolegnoliaAround(player)) {
|
||||
if(cooldown < 0)
|
||||
setCooldown(stack, 2);
|
||||
return;
|
||||
}
|
||||
|
||||
if(cooldown <= 0) {
|
||||
if(!player.isSneaking()) {
|
||||
double x = player.posX;
|
||||
|
||||
Reference in new issue
Block a user