Skip to content

Commit

Permalink
minor meta fixes and trident for holds item
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 3, 2022
1 parent 05e8ba9 commit 6e53d49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -35,7 +35,7 @@ public class WorldGameRuleChangeScriptEvent extends BukkitScriptEvent implements
// @Switch gamerule:<gamerule> to only process the event if the gamerule matches a specific gamerule.
//
// @Context
// <context.gamerule> returns the name of the GameRule which was changed. Refer to <@link ur https://jd.papermc.io/paper/1.19/org/bukkit/GameRule.html>.
// <context.gamerule> returns the name of the GameRule which was changed. Refer to <@link url https://jd.papermc.io/paper/1.19/org/bukkit/GameRule.html>.
// <context.value> returns the new value of the GameRule.
// <context.world> returns the world where the GameRule is applied.
// <context.source_type> returns type of source. Can be: PLAYER, COMMAND_BLOCK, COMMAND_MINECART, SERVER.
Expand Down
Expand Up @@ -60,7 +60,7 @@ public ObjectTag getObjectAttribute(Attribute attribute) {
// @mechanism EntityTag.fixed
// @group attributes
// @description
// Returns whether the item frame is fixed. (Meaning, it can't be altered by players).
// Returns whether the item frame is fixed. (Meaning, it can't be altered by players or broken by block obstructions).
// -->
if (attribute.startsWith("fixed")) {
return new ElementTag(((ItemFrame) entity.getBukkitEntity()).isFixed())
Expand All @@ -78,7 +78,7 @@ public void adjust(Mechanism mechanism) {
// @name fixed
// @input ElementTag(Boolean)
// @description
// Sets whether this item frame is fixed. (Meaning, it can't be altered by players).
// Sets whether this item frame is fixed. (Meaning, it can't be altered by players or broken by block obstructions).
// @tags
// <EntityTag.fixed>
// -->
Expand Down
Expand Up @@ -75,6 +75,7 @@ public boolean receivePacket(final Player player, final PacketInSteerVehicle ste
raisableItems.add(Material.SHIELD);
raisableItems.add(Material.CROSSBOW);
raisableItems.add(Material.BOW);
raisableItems.add(Material.TRIDENT);
if (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_17)) {
raisableItems.add(Material.valueOf("SPYGLASS"));
}
Expand Down

0 comments on commit 6e53d49

Please sign in to comment.