[SPIGOT-192] Missing class for newer gates Created: 12/Dec/14  Updated: 12/Dec/14  Resolved: 12/Dec/14

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Timo Hehnen Assignee: Thinkofname
Resolution: Fixed Votes: 0
Labels: 1.8


 Description   

in Material.java

Classes for the wood type gates are missing which causes
ClassCastException: org.bukkit.material.MaterialData cannot be cast to org.bukkit.material.Gate
if you want to check their state ( eg isOpen() )

FENCE_GATE(107, Gate.class),

is:
SPRUCE_FENCE_GATE(183),
BIRCH_FENCE_GATE(184),
JUNGLE_FENCE_GATE(185),
DARK_OAK_FENCE_GATE(186),
ACACIA_FENCE_GATE(187),

should:
SPRUCE_FENCE_GATE(183, Gate.class),
BIRCH_FENCE_GATE(184, Gate.class),
JUNGLE_FENCE_GATE(185, Gate.class),
DARK_OAK_FENCE_GATE(186, Gate.class),
ACACIA_FENCE_GATE(187, Gate.class),



 Comments   
Comment by FearThe1337 [ 12/Dec/14 ]

Confirmed.
Will work on this.

Generated at Sat Dec 13 15:19:16 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.