DemigodsRPG / Demigods3

The (now defunct) Demigods RPG experience for survival/PvP Minecraft servers.
http://www.demigodsrpg.com/
MIT License
4 stars 2 forks source link

Shrine and Obelisk creation does not work with some claim items. #148

Closed HmmmQuestionMark closed 11 years ago

alexbennett commented 11 years ago

How could this even happen...? I don't understand. The code simply checks the item in their hand.

if(event.getAction() == Action.RIGHT_CLICK_BLOCK && character.getDeity().getClaimItems().contains(event.getPlayer().getItemInHand().getType()) ...

alexbennett commented 11 years ago

I just tested this and it's working perfectly. Not sure why it didn't for you. I tested using Zeus and a feather. Closing for now. If I'm misunderstanding just let me know, but both Shrine and Obelisk creation works perfectly.

HmmmQuestionMark commented 11 years ago

Try it as poseidon.

HmmmQuestionMark commented 11 years ago

Revised issue.

alexbennett commented 11 years ago

Poseidon uses a fish, right? Then it has nothing to do with a placeable block. It's because a fish is edible.

HmmmQuestionMark commented 11 years ago

No, it uses a water lily.

HmmmQuestionMark commented 11 years ago

Which is placeable, it was late lol.

alexbennett commented 11 years ago

Oh, whatever, lol.

HmmmQuestionMark commented 11 years ago

I'm convinced this is a minecraft issue, not ours. Since lilypads can only be placed on water, they must cancel the event before bukkit listens for it.