替换原来的方块以后方块的方向不对
关闭
RT
@EventHandler
public void onPlayerInteract(PlayerInteractEvent event){
Block block = eventgetClickedBlock();
BlockData blockData = blockgetBlockData();
Material material = blockDatagetMaterial();
Location location = eventgetClickedBlock()getLocation();
locationgetBlock()setType(MaterialAIR);
locationgetBlock()setType(material);
locationgetBlock()setBlockData(blockData);
}
设置以后,方块变了,但是方向不对
服务端: 1165 catserver
自行解决: 就用这个,然后把自己的强迫症去掉就好了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)