From a7eb85ce36812d1b4bbab733ade82103d1aa3d92 Mon Sep 17 00:00:00 2001 From: Charles Smith Date: Tue, 9 Oct 2012 21:47:40 -0700 Subject: [PATCH] Removed infinite diamond exploit Typo prevented removed reinforcements from actually being removed, allowing players to harvest infinite diamond with a sand glitch. That's removed now and chunks caches now accurately remove reinforcements. --- .../src/com/untamedears/citadel/dao/CitadelCachingDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/citadel-paper/src/com/untamedears/citadel/dao/CitadelCachingDao.java b/plugins/citadel-paper/src/com/untamedears/citadel/dao/CitadelCachingDao.java index d8d9e1ea5..4d48b445a 100644 --- a/plugins/citadel-paper/src/com/untamedears/citadel/dao/CitadelCachingDao.java +++ b/plugins/citadel-paper/src/com/untamedears/citadel/dao/CitadelCachingDao.java @@ -95,7 +95,7 @@ public class CitadelCachingDao extends CitadelDao{ if( o instanceof Reinforcement ){ Reinforcement r = (Reinforcement)o; try{ - getCacheOfBlock( r.getBlock() ).save( r ); + getCacheOfBlock( r.getBlock() ).delete( r ); }catch( RefuseToPreventThrashingException e ){ Citadel.warning( "Bypassing RAM cache to prevent database thrashing. Consider raising caching.max_chunks"); super.delete( r );